package cn.luischen.interceptor;

<<<<<<< HEAD
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import cn.luischen.utils.IPKit;
import cn.luischen.service.user.UserService;
import cn.luischen.utils.MapCache;
import org.springframework.web.servlet.ModelAndView;
import cn.luischen.model.UserDomain;
import cn.luischen.constant.Types;
import cn.luischen.service.option.OptionService;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.servlet.HandlerInterceptor;
import cn.luischen.utils.Commons;
import cn.luischen.utils.TaleUtils;
import org.slf4j.Logger;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Component;
import cn.luischen.utils.AdminCommons;
import cn.luischen.utils.UUID;
import cn.luischen.model.OptionsDomain;
import cn.luischen.constant.WebConst;

import static org.junit.Assert.fail;
import org.mockito.MockitoAnnotations;
import java.util.Map;
import org.junit.After;
import java.lang.reflect.Method;
import static org.junit.Assert.*;
import java.util.List;
import com.alibaba.fastjson.TypeReference;
import static org.junit.Assert.assertNotNull;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import org.powermock.reflect.Whitebox;
import org.mockito.Mock;
import org.junit.runner.RunWith;
import java.util.HashMap;
import java.util.ArrayList;
import com.alibaba.fastjson.JSONArray;
import org.powermock.core.classloader.annotations.PrepareForTest;
import static org.junit.Assert.assertEquals;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.junit.rules.ExpectedException;
import org.mockito.InjectMocks;
import org.junit.Test;
import com.unitspirit.runtime.*;
import org.mockito.Mockito;
import com.alibaba.fastjson.JSON;
import org.junit.Rule;
import static org.junit.Assert.assertTrue;
import com.alibaba.fastjson.parser.ParserConfig;
=======
import org.junit.Rule;
import org.junit.rules.ExpectedException;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.powermock.core.classloader.annotations.PowerMockIgnore;

import com.alibaba.fastjson.parser.ParserConfig;
import com.unitspirit.runtime.GlobalUnitInit;
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e

/**
* The class <code>BaseInterceptorTest</code> contains tests for the class <code>{@link BaseInterceptor}</code>.
* Copyright (c) 2020
* 
<<<<<<< HEAD
<<<<<<< HEAD:src/test/java/cn/luischen/interceptor/BaseInterceptor_WGTest2.java
* @generatedBy UnitSpirit at 2021-09-05 20:52:25
=======
* @generatedBy UnitSpirit at 2021-09-10 11:30:15
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e:src/test/java/cn/luischen/interceptor/BaseInterceptor_WGTest3.java
=======
* @generatedBy UnitSpirit at 2021-09-05 20:52:25
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
* @version 1.0.20210903
*/

@PowerMockIgnore({ "javax.management.*" })
<<<<<<< HEAD
<<<<<<< HEAD:src/test/java/cn/luischen/interceptor/BaseInterceptor_WGTest2.java
public class BaseInterceptor_WGTest2 {
=======
public class BaseInterceptor_WGTest3 {
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e:src/test/java/cn/luischen/interceptor/BaseInterceptor_WGTest3.java
=======
public class BaseInterceptor_WGTest2 {
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e

	@InjectMocks
	cn.luischen.interceptor.BaseInterceptor unitspirit_fixture;
	@Mock
	cn.luischen.service.user.UserService mock_UserService;
	@Mock
	cn.luischen.utils.AdminCommons mock_AdminCommons;
	@Mock
	cn.luischen.service.option.OptionService mock_OptionService;
	@Mock
	cn.luischen.utils.Commons mock_Commons;

	@Rule
	public ExpectedException unitspirit_thrown = ExpectedException.none();

	/**
	* 测试方法初始化.
	* 
	* @throws Exception 
	*         if the initialization fails for some reason 
	*  
<<<<<<< HEAD
<<<<<<< HEAD:src/test/java/cn/luischen/interceptor/BaseInterceptor_WGTest2.java
	* @generatedBy UnitSpirit at 2021-09-05 20:52:25
=======
	* @generatedBy UnitSpirit at 2021-09-10 11:30:15
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e:src/test/java/cn/luischen/interceptor/BaseInterceptor_WGTest3.java
=======
	* @generatedBy UnitSpirit at 2021-09-05 20:52:25
>>>>>>> 3b028d6f1d2dd25e613c470e379df4ff28f4935e
	*/
	@org.junit.Before
	public void setUp() throws Exception {
		try {
			GlobalUnitInit.init();
			MockitoAnnotations.initMocks(this);
			ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

}